package com.yhb.channel.impl.Scalable.http;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.HashMap;

@Data
public class ScalableResponse {
    private int code; // 响应码
    private String message; // 响应信息
    private HashMap<String, Object> data;

    @JsonIgnore
    public boolean isSuccess() {
        return this.code == 0;
    }
}
